﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sworm
{
    public struct SqlIdentifier
    {
        private readonly string unescaped;
        private readonly string escaped;

        public SqlIdentifier(string unescaped)
            : this(unescaped, unescaped)
        {
        }

        public SqlIdentifier(string unescaped, string escaped)
            : this()
        {
            this.unescaped = unescaped;
            this.escaped = escaped;
        }

        public string Unescaped { get { return unescaped; } }
        public string Escaped { get { return escaped; } }

        public override string ToString()
        {
            return Unescaped;
        }
    }
}
